package com.sxdb.webadmin.service;

import com.sxdb.webadmin.bean.Student;
import com.sxdb.webadmin.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author MAXIAO
 * @create 2021-04-20-11:45
 */
@Service
public class StudentService {

    @Autowired
    StudentMapper studentMapper;

    public Student getSdudentFormId(int id){
        Student student = studentMapper.getStudent(id);
        return student;
    }

    public void addStudent(Student student){
        studentMapper.addStudent(student);
    }

}
